package babo;
public class Player 
{
	private String name;
	private String nation;

	public Player(String name) {
		this(name, " ");
	}

	public Player(String name, String nation) {
		this.name = name;
		this.nation = nation;
	}

	public String toString() {
		return name + ":" + nation;
	}

	public boolean equals(Object obj) {
		String compareValue = obj.toString();
		String thisValue = this.toString();
		System.out.println("equals");
		return thisValue.equals(compareValue);
	}

	public int hashCode() {
		return toString().hashCode();
	}
	
	
	public int compareTo(Player other){
		return name.compareTo(other.name);
	}
	

}
